/**
 * this class will implement the reminders entity of the porgram.
 * @author Gil Levinson
 * @author Boris Fradlis
 * @author Yogev Levi
 * @author Hila Porat
 * 
 */

package vcpClasses;

import java.text.SimpleDateFormat;
import java.util.Date;

// Start of Reminder ***************************************************************************

public class Reminder extends Notification{
	
	// Class variables *************************************************************************
	
	private String date;
	private String time;
	private String answer;
	private int orderNumber;

	// Constructors ****************************************************************************
	
	/**
	 * Construct a reminder with no input given, with current date 
	 */
	
	public Reminder(){
		super();
		Date date = new Date();
		SimpleDateFormat thedate = new SimpleDateFormat("yyyy-MM-dd");
		this.setDate(new String(thedate.format(date)));
		SimpleDateFormat thetime = new SimpleDateFormat("HH:mm");
		this.setTime(new String(thetime.format(date)));
		this.setAnswer(new String(""));
		this.setOrderNumber(0);
	}

	
	// Getters and Setters **********************************************************************
	
	/**
	 * @return the date
	 */
	public String getDate() {
		return date;
	}

	/**
	 * @param date the date to set
	 */
	public void setDate(String date) {
		this.date = date;
	}

	/**
	 * @return the time
	 */
	public String getTime() {
		return time;
	}

	/**
	 * @param time the time to set
	 */
	public void setTime(String time) {
		this.time = time;
	}

	/**
	 * @return the answer
	 */
	public String getAnswer() {
		return answer;
	}

	/**
	 * @param answer the answer to set
	 */
	public void setAnswer(String answer) {
		this.answer = answer;
	}

	/**
	 * @return the orderNumber
	 */
	public int getOrderNumber() {
		return orderNumber;
	}

	/**
	 * @param orderNumber the orderNumber to set
	 */
	public void setOrderNumber(int orderNumber) {
		this.orderNumber = orderNumber;
	}

	
	
}
